court nobles , families that owned and resided in temples , as well as samurai families , would make an incantation and pray at ise-jingu shrine which as dedicated to amaterasu omikami (the sun goddess ), wars during the medieval period devastated the shrine precinct , leading to the complete destruction of the shrine , such that the deity could not be transferred to a new shrine building , which was supposed to be performed once every prescribed number of years . 天照大神の神社として公家・寺家・武家が加持祈祷を行っていた伊勢神宮だったが、中世の戦乱の影響で領地を荒らされ、式年遷宮が行えないほど荒廃していた。